{include file="header/index" /}
<meta charset="UTF-8">
<style>
    .form-control {
        height: 33px;
    }
</style>

<body>
<div class="container wrapper-content animated fadeInRight">
    <div class="row" style="padding: 0 -20px;">
        <div class="col-sm-12" style="padding: 0;">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal" method="post" action="{:url('equipments/doupdate')}" enctype="multipart/form-data">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">设备名称</label>
                            <div class="input-group col-sm-4">
                                <input type="text" class="form-control" name="equipments_name" value="{$res.equipments_name}" placeholder="输入设备名称">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">设备金额</label>
                            <div class="input-group col-sm-4">
                                <input type="text" class="form-control" name="equipments_money" value="{$res.equipments_money}" placeholder="输入设备金额">
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">是否删除：</label>
                            <div class="col-sm-6">
                                <div class="switchery-radio" style="padding-top: 8px;">
                                    {if condition="$res.is_delete eq 0"}
                                    <input type="radio" name="is_delete" value="1">是
                                    <input type="radio" name="is_delete" value="0" checked="checked">否
                                    {else /}
                                    <input type="radio" name="is_delete" value="1" checked="checked">是
                                    <input type="radio" name="is_delete" value="0">否
                                    {/if}
                                </div>
                            </div>
                        </div>
                        <div class="hr-line-dashed"></div>
                        <div class="form-group">
                            <div class="col-sm-4 col-sm-offset-3">
                                <input type="hidden" name="equipments_id" value="{$res.equipments_id}">
                                <button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>&nbsp;&nbsp;&nbsp;
                                <a class="btn btn-danger" href="{:url('Equipments/index')}"><i class="fa fa-close"></i> 返回</a>
                            </div>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>
</body>
</html>